"""web URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from . import views

urlpatterns = [
    # 首页
    url(r'^$', views.index,name='home_index'),
    # 列表
    url(r'^goodslist/$',views.goodslist,name='home_goodslist'),
    # 详情
    url(r'^goodsinfo/$', views.goodsinfo,name='home_goodsinfo'),
    # 显示 城市联动的页面
    url(r'^getcitys/$',views.getcitys,name="home_getcitys"),
    # 登录
    url(r'^login/$', views.login,name='home_login'),
    # 退出
    url(r'^logout/$', views.logout,name='home_logout'),
    # 注册
    url(r'^register/$', views.register,name='home_register'),
    # 验证手机号
    url(r'^checkphone/$', views.checkphone,name='home_checkphone'),
    



    # 添加购物车
    url(r'^cartadd/$', views.cartadd,name='home_cartadd'),
    # 我的购物车
    url(r'^shopcart/$', views.shopcart,name='home_shopcart'),
    # 购物车数量修改
    url(r'^shopcart/edit/$',views.shopcartedit,name='home_shopcartedit'),
    # 购物车删除
    url(r'^shopcart/del/$',views.shopcartdel,name='home_shopcartdel'),
    # 购物车全部删除
    url(r'^shopcart/dels/$',views.shopcartdels,name='home_shopcartdels'),



    # 订单确认
    url(r'^shopcart/orderconfirm/$',views.orderconfirm,name='home_orderconfirm'),
    # 收货地址添加
    url(r'^orderconfirm/addressadd/$',views.addressadd,name='home_addressadd'),
    # 获取收货地址
    url(r'^orderconfirm/addressget/$',views.addressget,name='home_addressget'),
    # 收货地址设为默认
    url(r'^orderconfirm/addressdefault/$',views.addressdefault,name='home_addressdefault'),
    # 删除收货地址
    url(r'^orderconfirm/addressdel/$',views.addressdel,name='home_addressdel'),
    # 编辑收货地址
    url(r'^orderconfirm/addressedit/$',views.addressedit,name='home_addressedit'),
    # 执行编辑收货地址
    url(r'^orderconfirm/addresseditsave/$',views.addresseditsave,name='home_addresseditsave'),




    # 订单创建
    url(r'^order/create/$',views.ordercreate,name='home_ordercreate'),
    # 订单支付
    url(r'^order/buy/$',views.orderbuy,name='home_orderbuy'),
    # 我的订单管理
    url(r'^order/myinfo/$',views.myorderinfo,name='home_myorderinfo'),
    # 订单删除
    url(r'^order/del/$',views.myorderdel,name='home_myorderdel'),
    # 地址管理
    url(r'^order/addressmanage/$',views.addressmanage,name='home_addressmanage'),
    # 个人信息管理
    url(r'^personal/information/$',views.personalinformation,name='home_personalinformation'),
    



  


    # 发送验证码
    # url(r'^sendmsg/$',views.sendmsg,name='home_sendmsg'),




    
]
